package service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import common.dao.OrderDetailMapper;
import common.pojo.OrderDetail;
import common.utils.Constants;

@Service
public class OrderDetailServiceImpl {

	@Autowired
	private OrderDetailMapper mapper;

	public List<OrderDetail> find(String id) {
		return mapper
				.queryListByWhere(" od join book b on od.book_id=b.id where od.deleted="
						+ Constants.NOT_DELETED+" and od.order_id="+id);
	}

}
